package com.example.common.util;

import java.util.List;

/**
 * @author weicong
 * @version 1.0 createTime 2020/2/23 16:24
 */
public class Pager<T> {

    /**
     * 第几页
     */
    private Long pageNum;

    /**
     * 每页的数量
     */
    private Long size;

    /**
     * 数据
     */
    private List<T> rows;

    /**
     * 总数
     */
    private Long totalRows;

    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public Long getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(Long totalRows) {
        this.totalRows = totalRows;
    }
}
